function InventoryMenu(data)

	local LargeIcon
	local DButton_drop
	local DPanel1
	local DFrame_inventory
	
	local selected_model = ""
	
	local selected_item_id

	////OKNO
	
	DFrame_inventory = vgui.Create('DFrame')
	DFrame_inventory:SetSize(700, 500)
	DFrame_inventory:SetPos(0, 0)
	DFrame_inventory:SetTitle('Inventory')
	DFrame_inventory:SetSizable(true)
	DFrame_inventory:SetDeleteOnClose(false)
	DFrame_inventory:SetBackgroundBlur(true)
	DFrame_inventory:MakePopup()
	
	////Velika ikona
	
	local LargeIcon = vgui.Create( "DModelPanel", DFrame_inventory )
	LargeIcon:SetPos(489, 107)
	LargeIcon:SetModel(selected_model)
	LargeIcon:SetSize(200,200)
	
	////ICON LIST
	local IconList = vgui.Create( "DPanelList", DFrame_inventory )

	IconList:EnableVerticalScrollbar( true ) 
 	IconList:EnableHorizontal( true ) 
 	IconList:SetPadding( 4 ) 
	IconList:SetPos(10,30)
	IconList:SetSize(300, 450)	
 
	for k,v in pairs(LocalPlayer():Inventory_GetTable()) do
	local icon = vgui.Create( "SpawnIcon", IconList ) 
	icon:SetModel( LocalPlayer():WeaponToModel(v) )
 	IconList:AddItem( icon )
	icon.DoClick = function( icon ) 
		surface.PlaySound( "ui/buttonclickrelease.wav" ) 
		selected_item_id = k
		selected_model = LocalPlayer():WeaponToModel(v)
		LargeIcon:SetModel(LocalPlayer():WeaponToModel(v))
		end 
	end
	
	////GUMB
	
	DButton_drop = vgui.Create('DButton')
	DButton_drop:SetParent(DFrame_inventory)
	DButton_drop:SetSize(75, 25)
	DButton_drop:SetPos(550, 325)
	DButton_drop:SetText('Drop')
	DButton_drop.DoClick = function()
	LocalPlayer():Inventory_RemoveItem(selected_item_id)	
	DFrame_inventory:Close()
	end
	
end

concommand.Add("GreenRP_inventory_menu", InventoryMenu)

usermessage.Hook( "OPEN_INVENTORY_MENU", InventoryMenu )